package com.yeyks.config.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 消息推送表
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Message对象", description="消息推送表")
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("gmt_create")
    private Date gmtCreate;

    @TableField("gmt_modified")
    private Date gmtModified;

    @TableField("title")
    private String title;

    @TableField("content")
    private String content;

    @ApiModelProperty(value = "独发消息者的ID")
    @TableField("to_user_id")
    private Integer toUserId;

    @ApiModelProperty(value = "发送到账户类型")
    @TableField("to_user_type")
    private String toUserType;

    @ApiModelProperty(value = "消息类型")
    @TableField("type")
    private Integer type;


    public static final String ID = "id";

    public static final String GMT_CREATE = "gmt_create";

    public static final String GMT_MODIFIED = "gmt_modified";

    public static final String TITLE = "title";

    public static final String CONTENT = "content";

    public static final String TO_USER_ID = "to_user_id";

    public static final String TO_USER_TYPE = "to_user_type";

    public static final String TYPE = "type";

}
